Reg: Apache redirection rule

Reg: Apache redirection rule

am 09.09.2009 03:58:16 von sravan kumar

--001636c92af79366c204731b6a1c
Content-Type: text/plain; charset=ISO-8859-1

Hello apache gurus,

I have a special request,

when client hits the url

http://www.domain.com/signup.jsp?banner_s=off4&rotation_ s=off4

He should get the redirection to the url below.

http://www.domain.com/signup.jsp


I tired to add ad rule
RewriteRule /signup.jsp(.*) http://www.domain.com/signup.jsp

But in the Browser I get
http://www.domain.com/signup.jsp?banner_s=off4&rotation_ s=off4

can you help , how do I achieve this.

kumar

--001636c92af79366c204731b6a1c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello apache gurus,

I have a special request,

when client hit=
s the url

4&rotation_s=3Doff4">http://www.domain.com/signup.js p?banner_s=3Dof=
f4&rotation_s=3Doff4



He should get the redirection to=A0 the url below.

=A0 "http://www.domain.com/signup.jsp">http://www.domain.com/sig nup.jsp
=


I tired to add ad rule
RewriteRule /signup.jsp(.*)   =3D"http://www.domain.com/signup.jsp">http://www.domain.com/ signup.jsp<=
br>

But in the Browser I get nner_s=3Doff4&amp;rotation_s=3Doff4">http://www.domain.c om/signup.jsp?b=
anner_s=3Doff4&amp;rotation_s=3Doff4


can you help , how do I=
achieve this.


kumar


--001636c92af79366c204731b6a1c--

Re: Reg: Apache redirection rule

am 09.09.2009 07:08:48 von Krist van Besien

On Wed, Sep 9, 2009 at 3:58 AM, sravan kumar wrote=
:
> Hello apache gurus,
>
> I have a special request,
>
> when client hits the url
>
> http://www.domain.com/signup.jsp?banner_s=3Doff4&rotatio n_s=3Doff4
>
> He should get the redirection to=A0 the url below.
>
> =A0http://www.domain.com/signup.jsp
>
>
> I tired to add ad rule
> RewriteRule /signup.jsp(.*)   http://www.domain.com/signup.jsp

In the above line you are only rewriting the URL in the server. If you
want it to also change in the browser address bar you need to do a
redirect. This means adding [R] to the rule. (See the documentation
for more details)

You should also be aware that the LHS of a RewriteRule is only matched
against the URL, not against the query string...

Krist



--=20
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org